home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / TupleDatabase / HFSTupleDatabase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  1.6 KB  |  54 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        HFSTupleDatabase.h
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. #ifndef __HFSTUPLEDATABASE__
  15. #define __HFSTUPLEDATABASE__
  16.  
  17. #ifndef __TUPLEDATABASE__
  18. #include "TupleDatabase.h"
  19. #endif
  20.  
  21. #ifndef    __FILESPEC__
  22. #include "FileSpec.h"
  23. #endif
  24.  
  25. /***********************************|****************************************/
  26.  
  27. class THFSTupleDatabase : public ATupleDatabase
  28. {
  29. public:                                THFSTupleDatabase ();
  30.                                     THFSTupleDatabase ( const TFolderSpec& );
  31.     virtual                         ~THFSTupleDatabase ();
  32.  
  33.     virtual Boolean                 SetTuple ( const ATupleKey&, const ADataItem& );
  34.     virtual Boolean                 GetTupleData ( const ATupleKey&, ADataItem& );
  35.     virtual Boolean                 GetTupleKey ( unsigned long index, ATupleKey& );
  36.     virtual Boolean                 GetTupleDataSize ( const ATupleKey&, unsigned long& );
  37.     virtual Boolean                 DeleteTuple ( const ATupleKey& );
  38.     virtual Boolean                 FindIndexOfTuple ( const ATupleKey&, unsigned long& index ) const;
  39.     virtual Boolean                 DoesTupleExist ( const ATupleKey& ) const;
  40.     virtual unsigned long             CountTuples () const;
  41.     virtual void                     Flush ();
  42.     virtual    Boolean                    DeleteDatabase ();
  43.     
  44.     virtual    ostream&                operator >> ( ostream& ) const;
  45.  
  46. protected:                            THFSTupleDatabase ( const THFSTupleDatabase& );
  47.             THFSTupleDatabase&        operator = ( const THFSTupleDatabase& );
  48.             TFolderSpec                fFolderSpec;
  49. };
  50.  
  51. /***********************************|****************************************/
  52.  
  53. #endif    // __HFSTUPLEDATABASE__
  54.